<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>精灵图</title>
    <style>
        body{
            --bg : rgba(103, 50, 155, 0.94);
        }
        div {
            width: 100px;
            height: 100px;
            display: block;
        }

        .sprite { background: url('img/sprite.png') no-repeat top left; width: 81px; height: 81px;  }
        .sprite.fadan { background-position: 0 0; }
        .sprite.fadan:hover { background-position: -91px 0; }
        .sprite.jiedan { background-position: -182px 0; }
        .sprite.jiedan:hover { background-position: -273px 0; }
        .sprite.wode { background-position: -364px 0; }
        .sprite.wode:hover { background-position: -455px 0; }
        .sprite.alarm { background-position: -546px 0; }
        .sprite.alarm:hover { background-position: -637px 0; }

    </style>
</head>
<body>
<div style="display: flex;width:100vw">
<div class='sprite fadan'></div>
<!--<div class='sprite fadan_select'></div>-->
<div class='sprite jiedan'></div>
<!--<div class='sprite jiedan_select'></div>-->
<div class='sprite wode'></div>
<!--<div class='sprite wode_select'></div>-->
<div class='sprite alarm'></div>
<!--<div class='sprite alarm_select'></div>-->
</div>
<script>

</script>
</body>
</html>